
<%@ page language="java" contentType="text/html; charset=utf8" pageEncoding="utf8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ page trimDirectiveWhitespaces="true"%>
<html>
<head>
	<link rel="stylesheet" media="all" type="text/css" href="<c:url value="/resources/css/styles.css" />">
	<title>Registration Page</title>
</head>
<body>

	<div class="header">
	</div>
	
	<div id = 'form-box'>
		<h3>Create Account</h3>
		
		<c:if test="${not empty error}">			
			<div class="error">${error}</div>
		</c:if>
		
		<form:form method="post" commandName = "user">
			<table>
				<tr>
					<td><form:label path="userName">Username:</form:label></td>
					<td><form:input path='userName'/></td>
				</tr>
				<tr>
					<td><form:label path="password">Password:</form:label></td>
					<td><form:password path='password'/></td>
				</tr>
			</table>
			<br />
			<input id='submitButton' type="submit" value="Create" />
		</form:form>
	</div>

</body>
</html>